package com.breakfast.fun.dao;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Keep;

/**
 * Created by hp on 2016/9/7.
 */
@Entity
public class ProductCart {
    @Id(autoincrement = true)
    private Long id;
    private String image;
    private int num;
    private String name;
    private int categoryId;
    private String date;
    private double price;
    private double totalPrice;
    private int productId;
    private String productClassId;

    @Keep
    public ProductCart(Long id, String image, int num, String name, int categoryId,
                       String date) {
        this.id = id;
        this.image = image;
        this.num = num;
        this.name = name;
        this.categoryId = categoryId;
        this.date = date;
    }

    @Generated(hash = 1645874073)
    public ProductCart() {
    }

    public ProductCart(Long id, int categoryId, int productId, String chooseDate) {
        this.id = id;
        this.categoryId = categoryId;
        this.date = chooseDate;
        this.productId = productId;
    }

    public ProductCart(Long id, int productId, String date) {
        this.date = date;
        this.id = id;
        this.productId = productId;
    }

    @Generated(hash = 1180420791)
    public ProductCart(Long id, String image, int num, String name, int categoryId,
                       String date, double price, double totalPrice, int productId,
                       String productClassId) {
        this.id = id;
        this.image = image;
        this.num = num;
        this.name = name;
        this.categoryId = categoryId;
        this.date = date;
        this.price = price;
        this.totalPrice = totalPrice;
        this.productId = productId;
        this.productClassId = productClassId;
    }


    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getImage() {
        return this.image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getNum() {
        return this.num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCategoryId() {
        return this.categoryId;
    }

    public void setCategoryId(int categoryId) {
        this.categoryId = categoryId;
    }

    public String getDate() {
        return this.date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public double getPrice() {
        return this.price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getTotalPrice() {
        return this.totalPrice;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public int getProductId() {
        return this.productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public String getProductClassId() {
        return this.productClassId;
    }

    public void setProductClassId(String productClassId) {
        this.productClassId = productClassId;
    }


}
